/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_fuel_consumption.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.tb_fuel_consumption.entity.TbFuelConsumption;
import com.thinkgem.jeesite.modules.tb_fuel_consumption.dao.TbFuelConsumptionDao;

/**
 * 油品消耗登记Service
 * @author ZhangYangZe
 * @version 2017-06-08
 */
@Service
@Transactional(readOnly = true)
public class TbFuelConsumptionService extends CrudService<TbFuelConsumptionDao, TbFuelConsumption> {

	public TbFuelConsumption get(String id) {
		return super.get(id);
	}
	
	public List<TbFuelConsumption> findList(TbFuelConsumption tbFuelConsumption) {
		return super.findList(tbFuelConsumption);
	}
	
	public Page<TbFuelConsumption> findPage(Page<TbFuelConsumption> page, TbFuelConsumption tbFuelConsumption) {
		return super.findPage(page, tbFuelConsumption);
	}
	
	@Transactional(readOnly = false)
	public void save(TbFuelConsumption tbFuelConsumption) {
		super.save(tbFuelConsumption);
	}
	
	@Transactional(readOnly = false)
	public void delete(TbFuelConsumption tbFuelConsumption) {
		super.delete(tbFuelConsumption);
	}
	/**
	 * 通过审核的油品消耗 
	 * @author ZhaoHai
	 * @version 2017-07-11
	 */
	public List<TbFuelConsumption> reviewedFuel(List<String> waybillId){		
		return dao.reviewedFuel(waybillId);
	}
}